package com.markhsiu.tools;

/**
 * @author Mark Hsiu
 * @since 2018/8/3 上午11:41
 */
public class CostTest {
    // 参数
    public static final double alpha = 10.;
    //50%
    public static final double beta = 0.5;

    public static void main(String[] args) {
        double costs = 0.;
        double usage = 0.6;
        costs += 1. + alpha * (Math.exp(Math.max(0., usage - beta)) - 1.);
        System.out.println(costs);

    }
}
